<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:body>
	<p:dialog widgetVar="personUpdateDialogWidget"
		id="personUpdateDialogId" height="150" width="500" modal="true"
		closable="true" draggable="false" resizable="false">
		<h:form id="personUpdateDialogForm" prependId="false">
		<h:panelGrid columns="2">
		
                    <h:outputLabel value="#{bundle.EditUtilisateurLabel_motDePasse}" for="motDePasse" />
                    <h:inputText id="motDePasse" value="#{utilisateurController.selected.motDePasse}" title="#{bundle.EditUtilisateurTitle_motDePasse}" required="true" requiredMessage="#{bundle.EditUtilisateurRequiredMessage_motDePasse}"/>
                    <h:outputLabel value="#{bundle.EditUtilisateurLabel_email}" for="email" />
                    <h:inputText id="email" value="#{utilisateurController.selected.email}" title="#{bundle.EditUtilisateurTitle_email}" />
                    <h:outputLabel value="#{bundle.EditUtilisateurLabel_name}" for="name" />
                    <h:inputText id="name" value="#{utilisateurController.selected.name}" title="#{bundle.EditUtilisateurTitle_name}" />
                    <h:outputLabel value="#{bundle.EditUtilisateurLabel_numCarteIdentite}" for="numCarteIdentite" />
                    <h:inputText id="numCarteIdentite" value="#{utilisateurController.selected.numCarteIdentite}" title="#{bundle.EditUtilisateurTitle_numCarteIdentite}" required="true" requiredMessage="#{bundle.EditUtilisateurRequiredMessage_numCarteIdentite}"/>
                    <h:outputLabel value="#{bundle.EditUtilisateurLabel_numTelephone}" for="numTelephone" />
                    <h:inputText id="numTelephone" value="#{utilisateurController.selected.numTelephone}" title="#{bundle.EditUtilisateurTitle_numTelephone}" required="true" requiredMessage="#{bundle.EditUtilisateurRequiredMessage_numTelephone}"/>
                    <h:outputLabel value="#{bundle.EditUtilisateurLabel_prenom}" for="prenom" />
                    <h:inputText id="prenom" value="#{utilisateurController.selected.prenom}" title="#{bundle.EditUtilisateurTitle_prenom}" />
                    <h:outputLabel value="#{bundle.EditUtilisateurLabel_role}" for="role" />
                    <h:inputText id="role" value="#{utilisateurController.selected.role}" title="#{bundle.EditUtilisateurTitle_role}" />
                
				<p:commandButton value="Update" icon="ui-icon-plus"
					action="#{utilisateurController.update}"
					update=":messageGrowl :personsForm:personsTable"
					oncomplete="closeDialogIfSucess(xhr, status, args, personUpdateDialogWidget, 'personUpdateDialogId')" />
				<p:commandButton value="Cancel" icon="ui-icon-cancel" actionListener="#{personMB.resetPerson()}"
					onclick="personUpdateDialogWidget.hide();" type="button" />
			</h:panelGrid>
		</h:form>
	</p:dialog>
</h:body>
</html>